cmake_minimum_required(VERSION 3.0)
project(CALC)
file(GLOB SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
# 生成静态库
add_library(calc STATIC ${SRC_LIST})

# 生成动态链接库
add_library(calc_shared SHARED ${SRC_LIST})
add_executable(app ${SRC_LIST})


